#pragma once
#include <sys/types.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <string>


class InetAddr{
public:
    InetAddr(uint16_t port, const std::string& ip)
        :_port(port),
        _ip(ip)
    {}

    ~InetAddr(){}

    uint16_t GetPort() const {return _port;}

    std::string GetIp() const {return _ip;}


private:
    uint16_t _port;
    std::string _ip;
};